import React from 'react';
import { IeOutlined, EditOutlined, WindowsOutlined, FolderOutlined, } from '@ant-design/icons';
interface ImgUploadProps {
    title?: string;
    type: number;
}



const TreeTag: React.FC<ImgUploadProps> = ({ title = '', type = 1 }) => {
    const icons = ['', <IeOutlined />, <EditOutlined />, <WindowsOutlined />, <FolderOutlined />]
    return (<>
        <div>
            {icons[type]}
            <span style={{ marginLeft: '3px' }}>{title}</span>
        </div>
    </>)
}

export default TreeTag;